package com.lm.hutool.example;

import cn.hutool.setting.Setting;

public class HutoolSettingExample {
    public static void main(String[] args) {
        // 加载配置文件
        Setting setting = new Setting("config.setting");

        // 读取配置
        String username = setting.get("database.username");
        System.out.println("数据库用户名：" + username);

        // 修改配置
        setting.set("database.password", "new_password");
        setting.store("config.setting");
        System.out.println("密码已更新！");
    }
}
